<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
</head>
<body>
	<?php
		include "../functions.php";
		C(include "config.php");
	?>
	<h1>设置配置项</h1>
	<form action="editconfig.php" method="post">
	<table border="1" width="600">
		<tr>
			<td width="200">网站名称</td>
			<td><input type="text" name="WEBNAME"  value="<?php echo C("webname")?>"/></td>
		</tr>
		<tr>
			<td>网站开启</td>
			<td>
				<input type="radio" name="open" value="1" <?php echo C("open")?"checked='checked'":"";?>/>开启
				<input type="radio" name="open" value="0" <?php echo C("open")?"":"checked='checked'";?>/>关闭		
			</td>
		</tr>
		<tr>
			<td>网站关闭时的提示信息</td>
			<td>
				<textarea cols="30" rows="6" name="CLOSE_MSG"><?php echo C("CLOSE_MSG");?></textarea>
			</td>
		</tr>
		<tr>
			<td>数据库主机</td>
			<td>
				<input type="text" name="DB_HOST"  value="<?php echo C("DB_HOST")?>"/>
			</td>
		</tr>
		<tr>
			<td colspan="2"><input type="submit" value="修改配置项"/>
		</tr>
	</table>
</form>
</body>
</html>